﻿package com.hongguan.oms.service.grid;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.hongguan.oms.service.BaseService;

/**
 * GridBlankInfo Service
 * 
 * @author 
 * 
 */
@Service
public class GridBlankInfoService extends BaseService {

	public GridBlankInfoService() {
		super();
		namespace = "GRID_BLANK_INFO";
	}
	
	/**
	 * 保存GridBlankInfo
	 */
	public List searchBlank(Map param){
		return this.getSqlMapClientTemplate().queryForList(this.getStatementName("blank_search"),param);
	}
	public long searchBlankCount(Map param){
		return (Long)this.getSqlMapClientTemplate().queryForObject(this.getStatementName("blank_search_count"),param);
	}
	public long addBlank(Map param){
		return (Long)this.getSqlMapClientTemplate().insert(this.getStatementName("blank_add"),param);
	}
	public boolean isNameSame(Map param){
		boolean flag=false;
		long num = (Long)this.getSqlMapClientTemplate().queryForObject(this.getStatementName("is_blank_name_same"),param);
		if(num>0){
			flag=true;
		}
		return flag;
	}
	public void modifyBlank(Map param){
		this.getSqlMapClientTemplate().update(this.getStatementName("blank_modify"),param);
	}
	public void deleteBlank(Map param){
		this.getSqlMapClientTemplate().update(this.getStatementName("blank_delete"),param);
	}
	public List searchBlankById(Map param){
		return (List)this.getSqlMapClientTemplate().queryForList(this.getStatementName("blank_search_by_id"),param);
	}
}

